<?php

class Category extends AppModel {
  public $name = 'category';
  public $hasMany = array('Album'=> array('className'=>'Album', 'foreign_key'=>'category_id', 'dependent'=>true));
  public $validate = array(
      'Category.name' => array(
          'name' => 'notEmpty',
          'message'=>'Name is required'
      )
  );
   
  
}

?>
